﻿using QueryZJK.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QueryZJK.Helpers
{
    public static class DbDaoManager
    {
        //反射生成
        //private static readonly string AssemblyName = "";
        //private static readonly string dbType = ConfigHelper.DbType;

        public static IDao GetMatchDao()
        {
            DbType dbType = ConfigHelper.DbType;
            switch (dbType)
            {
                case DbType.ORACLE:
                    return OracleHelper.Instance;
                case DbType.SQLSERVER:
                    return SqlServerHelper.Instance;
                default:
                    throw new NotImplementedException("未实现的数据库类型");
            }
        }
    }
}
